package com.aiyige.model;

public class Oauth2ResetPassword {
    String password;
    String mobile;

    public Oauth2ResetPassword() {
    }

    private Oauth2ResetPassword(Builder builder) {
        setPassword(builder.password);
        setMobile(builder.mobile);
    }

    public Oauth2ResetPassword(String mobile, String password) {
        this.password = password;
        this.mobile = mobile;
    }

    public static Builder newBuilder() {
        return new Builder();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public static final class Builder {
        private String password;
        private String mobile;

        private Builder() {
        }

        public Builder password(String val) {
            password = val;
            return this;
        }

        public Builder mobile(String val) {
            mobile = val;
            return this;
        }

        public Oauth2ResetPassword build() {
            return new Oauth2ResetPassword(this);
        }
    }
}
